package org.blog.druid;

import com.alibaba.druid.support.http.StatViewServlet;

import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;

@WebServlet(urlPatterns = "/druid/*",
    initParams = {
        @WebInitParam(name = "allow",value = "192.168.100.1,127.0.0.1"), //ip白名单
        @WebInitParam(name = "deny",value = "192.168.100.2"), //ip黑名单
        @WebInitParam(name = "loginUsername",value = "admin"), //配置登陆用户名
        @WebInitParam(name = "loginPassword",value = "admin"),
        @WebInitParam(name = "resetEnable",value = "false") //禁用HTML页面还是那个的清空按钮
    })
public class DruidStatViewServlet extends StatViewServlet {
    private static final long serialVersionUID = 1L;

}